package com.example.javadevopsdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 江黎
 * @since 2022-08-02
 */
@RestController
public class TestController {

    @GetMapping
    public String hello() {
        return "hello jenkins1 " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
    }
}
